package com.laxcen.smoke.service;

import com.github.pagehelper.PageInfo;
import com.laxcen.smoke.dto.res.UserMessageRes;
import com.laxcen.smoke.dto.res.UserResourceRes;
import com.laxcen.smoke.util.Response;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

public interface UsersService {

    Response insert(String username, String account, String password, int roleflag, int onoroff, String province, String city, String area) throws Exception;

    Response update(String id, String username, String account, String password, int roleflag, int onoroff, String province, String city, String area) throws Exception;

    Response delete(String id);

    Response deletemore(String id);

    Response<PageInfo<UserMessageRes>> getAllUser(int pageNo, int pageSize);

    Response<PageInfo<UserMessageRes>> getDefineList(String account, String username, int pageNo, int pageSize) throws ParseException;

    Response<UserMessageRes> sign(String account, String password, HttpServletRequest hsrequest, HttpServletResponse response);

    UserMessageRes getOne(String account);

    Response distribute(String userid, long roleid);

    Response<List<UserResourceRes>> getUserResource(String userid);


}
